This example shows how to resize the SfPdfViewer within its container, at the run time. Here, the SfPdfViewer is rendered inside a Splitter component. When you resize the Splitter, the SfPdfViewer will stretch its size accordingly by using the UpdateViewerContainerAsync() method.
Documentation: https://blazor.syncfusion.com/documentation/pdfviewer-2/how-to/stretch-the-pdf-viewer-size-to-its-container
To run this application, you need Visual Studio 2019 or later versions.
To debug while running the application, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging.